import globals from "globals";
import pluginJs from "@eslint/js";
import tseslint from "typescript-eslint";
import pluginVue, { rules } from "eslint-plugin-vue";

export default [
  {
    // eslint检测文件类型
    files: ["**/*.{js,mjs,cjs,ts,vue}"],
    // eslint忽略检测
    ignores: ["node_modules"],
  },
  {languageOptions: { globals: globals.browser }},
  pluginJs.configs.recommended,
  ...tseslint.configs.recommended,
  ...pluginVue.configs["flat/essential"],
];